{deps, [
    {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.29.0"}}},
    %  kafka erlang's client
    {brod, {git, "https://github.com/kafka4beam/brod.git", {tag, "4.4.2"}}},
    {emqx, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.0.3"}, "apps/emqx"}},
    %% this is my plugin's dependency
    {map_sets, "1.1.0"},
    {crc32cer, "0.1.8"},
    {jsx, "2.11.0"}
]}.

{plugins, [
    {emqx_plugrel, {git, "https://github.com/emqx/emqx_plugrel.git", {tag, "0.3.0"}}}
]}.

{erl_opts, [debug_info]}.
{relx, [
    {release, {emqx_plugin_kafka, "0.1.0"}, [
        emqx_plugin_kafka,
        map_sets,
        brod,
        kafka_protocol,
        crc32cer,
        snappyer
    ]},
    %  测试一下开发者模式
    {dev_mode, false},
    {include_erts, true},
    {overlay, [
        {copy, "scripts/brod", "bin"},
        {copy, "lib/crc32cer/priv/crc32cer*.{so,dll}", "bin"},
        {copy, "lib/snappyer/priv/snappyer.{so,dll}", "bin"}
    ]}
]}.
%% Additional info of the plugin
{emqx_plugrel, [
    {authors, ["weiHuang.zhu"]},
    {builder, [
        {name, "weiHuang.zhu"},
        {contact, "amespaces@qq.com"}
    ]},
    {functionality, ["emqx-plugin-kafka"]},
    {compatibility, [{emqx, "~> 5.0"}]},
    {description, "This is a kafka plugin"}
]}.

{xref_checks, [
    undefined_function_calls,
    undefined_functions,
    locals_not_used,
    deprecated_function_calls,
    warnings_as_errors,
    deprecated_functions
]}.
